Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: move (initial) serving of cached route to event handler #73

Merged
merged 7 commits into from
Aug 25, 2024

Conversation

dulnan
Copy link
Owner

@dulnan dulnan commented Aug 25, 2024

Fixes #40

  • Moves serving of the (initial) cached route to an event handler
  • That way hooks such as "beforeResponse" can always alter the response, even when served from cache
  • Remove the "content-encoding" header from being stored in the cache item to prevent sending a content-encoding header that is not compatible with the actual response when returning a cached response

@dulnan dulnan merged commit 1016aab into main Aug 25, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Route Caching: ERR_CONTENT_DECODING_FAILED 200 (OK)
1 participant